home *** CD-ROM | disk | FTP | other *** search
/ BUG 1 / BUGCD1996_0708.ISO / pc / util / minilin / minilin.exe / VAR / ADM / SETUP / SETUP_SE.{_5 < prev    next >
Text File  |  1994-01-28  |  2KB  |  70 lines

  1. #!/bin/sh
  2. T_PX=$1
  3. if [ "$COLOR" = "on" -o -r /tmp/SeTcolor ]; then
  4.  dialog --title "SELECTION 1.5 CONFIGURATION" --yesno \
  5. "Selection is a program that allows you to do cut and paste\n\
  6. on the virtual consoles using a mouse. If you choose to\n\
  7. have it run at boot time, the line:\n\
  8. \n\
  9.     selection -t $MTYPE &\n\
  10. \n\
  11. will be added to the end of your /etc/rc.d/rc.local.\n\
  12. \n\
  13. Running selection with a bus mouse can cause problems with\n\
  14. XFree86 2.0.  If XFree86 2.0 refuses to start and complains\n\
  15. that it cannot open the mouse then you might want to comment\n\
  16. the line out of /etc/rc.d/rc.local.  Would you like to add\n\
  17. \n\
  18.     selection -t $MTYPE &\n\
  19. \n\
  20. to /etc/rc.d/rc.local so that selection will load at boot\n\
  21. time?" 22 65
  22.  if [ $? = 0 ]; then
  23.   if fgrep "Running sele" $T_PX/etc/rc.d/rc.local 1> /dev/null 2> /dev/null ; then
  24.    echo > /dev/null
  25.   else
  26.    echo "# Running selection" >> $T_PX/etc/rc.d/rc.local
  27.    echo 'echo "Running selection..."' >> $T_PX/etc/rc.d/rc.local
  28.    echo "selection -t $MTYPE &" >> $T_PX/etc/rc.d/rc.local
  29.   fi
  30.  fi
  31. else # no color!
  32.  cat << EOF
  33. Configuration of 'Selection 1.5':
  34.  
  35. "Selection" is a program that allows you to do cut and paste on the
  36. virtual consoles using a mouse. If you choose to have it run at boot
  37. time, the line "selection -t $MTYPE &" will be added to the end of
  38. your /etc/rc.d/rc.local.
  39.  
  40. Running selection with a bus mouse can cause problems with XFree86 2.0.
  41. If XFree86 2.0 refuses to start and complains that it cannot open the
  42. mouse then you might want to comment the line out of /etc/rc.d/rc.local.
  43.  
  44. Would you like to add "selection -t $MTYPE &" to /etc/rc.d/rc.local so that
  45. EOF
  46.  echo -n "selection will load at boot time ([y]es, [n]o)? "
  47.  while [ 0 ]; do
  48.   read SL;
  49.   if [ "$SL" = "y" ]; then
  50.    echo
  51.    echo "Configuring selection..."
  52.    if fgrep "Running sele" $T_PX/etc/rc.d/rc.local 1> /dev/null 2> /dev/null ; then
  53.     echo 
  54.     echo "Already found in /etc/rc.d/rc.local. Skipping..."
  55.    else
  56.     echo "# Running selection" >> $T_PX/etc/rc.d/rc.local
  57.     echo 'echo "Running selection..."' >> $T_PX/etc/rc.d/rc.local
  58.     echo "selection -t $MTYPE &" >> $T_PX/etc/rc.d/rc.local
  59.    fi
  60.    echo
  61.    break;
  62.   elif [ "$SL" = "n" ]; then
  63.    echo
  64.    break;
  65.   fi
  66.   echo
  67.   echo "Unknown response. Answer y or n."
  68.  done
  69. fi
  70.